import request from '@/utils/request'
// 同步数据
export function sync(data) {
	return request({
		url: '/heartbeat/sync',
		headers: {
			isToken: false
		},
		method: 'post',
		data: data
	})
}
//查询历史记录
export function getPatients(date) {
	return request({
		url: '/heartbeat/patients?date=' + date,
		headers: {
			isToken: false
		},
		method: 'get',
	})
}
//查询同步状态
export function getSyncState() {
	return request({
		url: '/heartbeat/state',
		headers: {
			isToken: false
		},
		method: 'get',

	})
}
//查询数据
export function getHeartbeatList(data) {
	return request({
		url: '/heartbeat/page',
		headers: {
			isToken: false
		},
		method: 'post',
		data: data
	})
}
//批注
export function saveAnnotation(data) {
	return request({
		url: '/annotation/save',
		headers: {
			isToken: false
		},
		method: 'post',
		data: data
	})
}
//获取批次列表
export function getBatchList(code) {
	return request({
		url: '/heartbeat/batch-num?code=' + code,
		headers: {
			isToken: false
		},
		method: 'get',
	})
}